home *** CD-ROM | disk | FTP | other *** search
- 165
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- FindWindow
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows and Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baFindWindow returns the handle of a window. This handle can then be used in
- --- RECORDSEPARATOR ---
- other window management functions.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baFindWindow( Class/Creator, Title )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String, String.
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
- , Class is the class name of the window.
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Macintosh
- --- RECORDSEPARATOR ---
- , Creator it is the creator type of the application.
- --- RECORDSEPARATOR ---
- Title is the text in the window's caption.
- --- RECORDSEPARATOR ---
- The function can use either or both arguments. If one of the arguments is empty,
- --- RECORDSEPARATOR ---
- then only the other argument will be used in searching for the window.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- Returns the window handle. I
- --- RECORDSEPARATOR ---
- f the window isn't found, then returns 0.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set WinHandle = baFindWindow( "" , "Calculator" ) --
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- set WinHandle = baFindWindow( "CARO", "" )
- --- RECORDSEPARATOR ---
- --
- --- RECORDSEPARATOR ---
- Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- WinHandle := baFindWindow( "" , "Calculator" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
- , a window handle is an number that Windows uses to identify
- --- RECORDSEPARATOR ---
- windows. Every window has a unique handle. You can use this handle to
- --- RECORDSEPARATOR ---
- manipulate the window; bring it to the front, close it, etc.
- --- RECORDSEPARATOR ---
- Every window also has a class name. This is assigned by the programmer, and can
- --- RECORDSEPARATOR ---
- be used to find a specific window. For example, the Class window for the main MS
- --- RECORDSEPARATOR ---
- Word window is "OpusApp". To find the handle for the Word window, you could
- --- RECORDSEPARATOR ---
- use FindWindow( "OpusApp", "" ).
- --- RECORDSEPARATOR ---
- If you know the text in the window's caption, you can use this to find the window.
- --- RECORDSEPARATOR ---
- For example, FindWindow( "" , "Notepad - mydoc.txt" ).
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Macintosh
- --- RECORDSEPARATOR ---
- , the window handle returned is the identifier for the application rather
- --- RECORDSEPARATOR ---
- than an individual window. The title of the window will be the name that appears in
- --- RECORDSEPARATOR ---
- the Application menu.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- See also:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baWindowList
- --- RECORDSEPARATOR ---
- baGetWindow